package org.example;

import lombok.extern.slf4j.Slf4j;
import org.example.Service.EmpService;
import org.example.util.JsonResult;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
*@Auther:Liu
*@Testname:${NAME}
*@Date:2025/7/29   14:47
*///TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
   @EnableTransactionManagement
    @Slf4j
    @SpringBootApplication
public class BootIoCMybatisApplication {
    public static void main(String[] args) {
//        ApplicationContext context = SpringApplication.run(BootIoCMybatisApplication.class, args);
//        EmpService bean = context.getBean(EmpService.class);
//        JsonResult all = bean.findAll();
//        log.info("all:{}", all);
        SpringApplication.run(BootIoCMybatisApplication.class, args);
    }
}